package com.lxm.algorithm.circleQueue;

public class TestQueue {
    public static void main(String[] args){
        ArrayCircleQueue<Integer> arrayCircleQueue = new ArrayCircleQueue<>(5);
        arrayCircleQueue.offer(1);
        arrayCircleQueue.offer(2);
        arrayCircleQueue.offer(3);
        arrayCircleQueue.offer(4);
        System.out.println(arrayCircleQueue);
        System.out.println(arrayCircleQueue.poll());
        System.out.println(arrayCircleQueue.poll());
        System.out.println(arrayCircleQueue);
        System.out.println(arrayCircleQueue.poll());
        System.out.println(arrayCircleQueue.poll());
        System.out.println(arrayCircleQueue);
    }
}
